import request from '@/utils/request'
import store from '@/store'

export function login(data) {
  var str = `/auth/login?lang=${store.getters.language=="zh"?'ch_CN':'ko_KR'}`
  console.log(str)
  return request({
    url:str,
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/user/detail',
    method: 'get',
    params: {}
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
